package com.marshall.scstudy.feign;

import com.marshall.scstudy.feign.hystrix.Payment8001Hystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * Created by
 *
 * @author : Marshall
 * @datetime: 2021/11/5 10:44
 */
@FeignClient(value = "cloud-provider-hystrix-payment8001",fallback = Payment8001Hystrix.class)
public interface PaymentHystrix8001Feign {

    @GetMapping("/payment/hystrix/out/{id}")
    String paymentinfoout(@PathVariable("id") Integer id);


}
